"""
__author__ = 'heyanmin'
__time__ = '2021/9/1 5:20 下午'
"""

# num = int(input("输入一个数字: "))
# if (num % 2) == 0:
#    print("{0} 是偶数".format(num))
# else:
#    print("{0} 是奇数".format(num))

#
# list=[x for x in range(20) if x % 2 == 0]
# print(list)


list1=["张三，18612345678","李四，18612345679","王五，18612345610"]
list2=["18612345678","18612345610"]
list3=[]
#
# def compare(self,nums):
for i in range (len(list2)):
    if list2[i] not in list1:
        list1.append(list2[i])
print(list1)


def find_diff_intwo_list(list1, list2):
    '''
    :param list1: 列表1
    :param list2: 列表2
    :return:
    '''
    same, diff = [], []
    seq = list(set(list2))
    for i in list(set(list1)):
        if i not in list2:
            diff.append(i)
        else:
            same.append(i)
    for j in same:
        seq.remove(j)

    print("same is {},diff is {}".format(same, diff + seq))


# """
#        s = set()
#        s.clear()
#        for num in nums:
#            if num not in s:
#                s.add(num)
#            else:
#                return True